package com.hhd.form.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 单据子表权限定义
 * @author tangzy
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("design_sub_form_action_definition")
public class DesignSubFormActionDefinition implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 权限id
     */
    @TableField("action_id")
    private String actionId;

    /**
     * 明细表id
     */
    @TableField("form_id")
    private String formId;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 新建
     */
    @TableField("add_row")
    private Boolean addRow;

    /**
     * 删除
     */
    @TableField("remove_row")
    private Boolean removeRow;

    /**
     * 复制
     */
    @TableField("copy_row")
    private Boolean copyRow;

    /**
     * 删除全部
     */
    @TableField("clear_row")
    private Boolean clearRow;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 明细表id
     */
    @TableField("sub_form_id")
    private String subFormId;

    /**
     * 上移
     */
    @TableField("move_up")
    private Boolean moveUp;

    /**
     * 下移
     */
    @TableField("move_down")
    private Boolean moveDown;


}
